package demo4;

public class Variable {
    public static void main(String[] args) {
        int a, b, c;
        int d = 3, e = 4, f = 5;
        byte z = 22;
        String s = "菜鸟教程";
        double pi = 3.14159;
        char x = 'x';

        a = 10;
        b = 3;
        c = 5;

        // 一行println输出多个数值变量
        System.out.println("a的值是：" + a + ", " + "b的值是：" + b + ", " + "c的值是：" + c);
        System.out.println("d的值是：" + d + ", " + "e的值是：" + e + ", " + "f的值是：" + f);
        System.out.println("程序来自：" + s);
        System.out.println("半是" + b + ",圆的面积是:" + b * b * pi);
    }
}
